package bean;

import java.io.Serializable;
import javax.persistence.*;

@Embeddable
public class TelefonoId implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String area;
	private String numero;

	@Column (nullable = false, length = 3)
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	
	@Column (nullable = false, length = 10)
	public String getNumero() {
		return numero;
	}
	public void setNumero(String numero) {
		this.numero = numero;
	}
	@Override
	public String toString() {
		return "("+area+")"+numero;
	}
	
	
}
